package com.lejin.cms.service;

import com.lejin.cms.entity.CourseCat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lejin.item.entity.CourseOutline;
import com.lejin.vo.CatCascadeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author luminghua
 * @since 2022-04-21
 */
public interface ICourseCatService extends IService<CourseCat> {
    public List<CatCascadeVO> selectCatCascade();

    //某个一级分类下的价格升序
    public List<CourseOutline> selectCoursesByCatIdAndPriceAsc( String catId);


    //首页某个二级分类下点击量最高的8个课程
    public List<CourseOutline> selectCoursesByHitsDesc(String cat2Id);

}
